libxc: use correct return type for do_memory_op()
authorJuergen Gross <jgross@suse.com>
Fri, 27 Nov 2015 09:00:51 +0000 (10:00 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 1 Dec 2015 12:10:11 +0000 (12:10 +0000)
commita27f1fb69d13c800dc438bc93ffdb437962c29fb
tree24aba87f243b1e2def60256e09d61582fce90b43
parentcc41036da8d9075c9b9d57685b6b81f0f964369f
libxc: use correct return type for do_memory_op()

Currently do_memory_op() is returning int, while the hypervisor is
returning long. This will lead to wrong return informations as soon as
e.g. a pfn larger than about 2 billion (8 TB) is returned.

Use the correct long return type instead and correct the functions
expecting a pfn via the return value of do_memory_op().

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_domain.c
tools/libxc/xc_private.c
tools/libxc/xc_private.h